package com.honeybee.cloud.framework.base.exception.service;

import com.honeybee.cloud.framework.base.exception.business.BaseBizException;
import lombok.extern.slf4j.Slf4j;

/**
 * @Description 业务基础异常
 * @Author DELL
 * @Create 2018-12-08
 * @Since 1.0.0
 */
@Slf4j
public class ServiceExceptionBase extends BaseBizException {
    public static BaseBizException getInstance(ServiceExceptionEnum exceptionEnum) {
        return new BaseBizException(exceptionEnum.getParentCode(), exceptionEnum.getSubCode(), ServiceExceptionEnum.getParentMessage());
    }
}
